import { IsNotEmpty, IsArray, ArrayNotEmpty } from 'class-validator';

export class CreateAlbumDto {
  // @IsNotEmpty({ message: '标题不能为空' })
  // readonly head: string;
  @IsNotEmpty({ message: '标题不能为空' })
  readonly title: string;
  @IsNotEmpty({ message: '内容不能为空' })
  readonly content: string;
  @IsNotEmpty({ message: '图片不能为空' })
  @IsArray({ message: '图片不能为空' })
  @ArrayNotEmpty({ message: '图片不能为空' })
  readonly images: string[];
  readonly id: string;
  readonly creationTime: number;
  readonly show: number;
  readonly dimension: string;
  readonly address: string;
  readonly poiDesc: string;
  readonly lat: number;
  readonly lng: number;
  readonly city: string;
  readonly district: string;
  readonly albumTime: number;
}
